package com.cskaoyan.mapper;

import com.cskaoyan.bean.AfterSale;
import com.cskaoyan.bean.AfterSaleExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AfterSaleMapper {
    long countByExample(AfterSaleExample example);

    int deleteByExample(AfterSaleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(AfterSale record);

    int insertSelective(AfterSale record);

    List<AfterSale> selectByExample(AfterSaleExample example);

    AfterSale selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") AfterSale record, @Param("example") AfterSaleExample example);

    int updateByExample(@Param("record") AfterSale record, @Param("example") AfterSaleExample example);

    int updateByPrimaryKeySelective(AfterSale record);

    int updateByPrimaryKey(AfterSale record);

    void refund(Integer orderId);

    void recept(Integer orderId);

    void reject(Integer orderId);

    void batchRecept(List<Integer> ids);

    void batchReject(List<Integer> ids);
}